﻿using System;
using System.Collections.Generic;
using System.Text;
using Httlgd.DataCenter.Services.Core;
using Httlgd.DataCenter.Services.Core.Common;
using Httlgd.DataCenter.Services.Common;
using Httlgd.DataCenter.Services.Sms.DataTransferObject;
using Httlgd.DataCenter.Services.Sms.DataAccess;

namespace Httlgd.DataCenter.Services.Sms.BusinessComponent
{
    public class SermonBC : BusinessComponentGeneric<SermonDTO, SermonDAL>
    {
        public DataTransferObjectCollectionBase<SermonDTO> Search(SermonSearchParameterDTO param)
        {
            return DA.Search(param);
        }

        public void UpdateSermonAudioFilePath(int sermonID, string audioFileName, string audioFilePath)
        {
            this.DA.UpdateSermonAudioFilePath(sermonID, audioFileName, audioFilePath);
        }

        public string GetAudioFilePath(int sermonID, out string fileName)
        {
            return this.DA.GetSermonAudioFilePath(sermonID, out fileName);
        }
    }
}
